import tab from './tab'
import auth from './auth'
import modal from './modal'
import ImagePreview from '@/components/ImagePreview/index.vue'

export default {
  install(app) {
    // 页签操作
    app.config.globalProperties.$tab = tab
    // 认证对象
    app.config.globalProperties.$auth = auth
    // 模态框对象
    app.config.globalProperties.$modal = modal
    // 注册全局组件
    app.component('ImagePreview', ImagePreview)
  }
}
